import Vue from 'vue'
import Router from 'vue-router'
//两个固定写法 防止报错的

Vue.use(Router)
const routes =
    [
        {
            path: '/',
            name: 'Main',
            component: () => import('../views/Main.vue'),
        },
        {
            path: '/about',
            name: 'about',
            component: () => import('../views/About/about.vue')
        },
        {
            path: "/detail",
            name: "detail",
            component: () => import("../views/detail/detail.vue")
        },
        {
            path: "/search",
            name: "search",
            component: () => import("../views/Serach.vue")
        },
        {
            path:"/list",
            name:"list",
            component:() => import("../views/List/list.vue")
        }
    ]



const router = new Router({
    mode: "hash",
    routes
})
export default router
